package com.zhang.infrastructure.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;

import java.lang.reflect.Method;

/**
 *   深圳金雅福控股集团有限公司
 *  @author zhangfanjun
 * @date 2021/11/17
 * @date 2022/4/7
 */
@Slf4j
public class AlumniAsyncUncaughtExceptionHandler implements AsyncUncaughtExceptionHandler {

    @Override
    public void handleUncaughtException(Throwable ex, Method method, Object... objects) {
        log.error("handleUncaughtException==》class#method: " + method.getDeclaringClass().getName() + "#" + method.getName());
        log.error("handleUncaughtException==》exception   : " + ex.getMessage());
    }
}
